// 1.整数，异或
let a = 12;
let b = 25;

a = a ^ b;
b = a ^ b;
a = a ^ b;

console.log("[ a,b ] >", a, b);

//2 number
let n = 12.5;
let m = 55.3;

n = n + m;
m = n - m;
n = n - m;

console.log("[ n,m ] >", n, m);

// 3.交换变量
function swap(a, b) {
  [a, b] = [b, a];

  return [a, b];
}

console.log("[ swap(1,2) ] >", swap(1, 2));
